/*
 * Copyright [2022] [https://www.xiaonuo.vip]
 *
 * Snowy采用APACHE LICENSE 2.0开源协议，您在使用过程中，需要注意以下几点：
 *
 * 1.请不要删除和修改根目录下的LICENSE文件。
 * 2.请不要删除和修改Snowy源码头部的版权声明。
 * 3.本项目代码可免费商业使用，商业使用请保留源码和相关描述文件的项目出处，作者声明等。
 * 4.分发源码时候，请注明软件出处 https://www.xiaonuo.vip
 * 5.不可二次分发开源参与同类竞品，如有想法可联系团队xiaonuobase@qq.com商议合作。
 * 6.若您的项目无法满足以上几点，需要更多功能代码，获取Snowy商业授权许可，请在官网购买授权，地址为 https://www.xiaonuo.vip
 */
package cn.lixunims.ims.modular.basics.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.alibaba.excel.enums.poi.FillPatternTypeEnum;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品实体
 *
 * @author YouDong
 * @date  2024/09/16 21:21
 **/
@Getter
@Setter
@TableName("ims_product")
public class ImsProduct {

    /** 主键ID */
    @TableId
    @Schema(description = "主键ID")
    @ExcelIgnore
    private String productId;

    /** 编码 */
    @Schema(description = "商品编号")
    @ExcelProperty(value = "商品编号", index = 0)
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 34)
    private String productCode;

    /** 名称 */
    @Schema(description = "商品名称")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 34)
    @ExcelProperty(value = "商品名称", index = 1)
    private String productName;
    /** 类型 */
    @Schema(description = "商品类型")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 34)
    @ExcelProperty(value ="商品类型", index = 2)
    private String productType;




    /** 商品规格 */
    @Schema(description = "商品规格")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 42)
    @ExcelProperty(value ="商品规格", index = 3)
    private String productSpecifications;
    /** 商品规格 */
    @Schema(description = "商品品牌")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 42)
    @ExcelProperty(value ="商品品牌", index = 4)
    private String brand;

    /** 计量单位 */
    @Schema(description = "计量单位")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 34)
    @ExcelProperty(value ="计量单位", index = 5)
    private String measureUnit;

    /** 成本价 */
    @Schema(description = "成本价")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 42)
    @ExcelProperty(value ="成本价", index = 6)
    private BigDecimal costPrice;

    /** 销售价格 */
    @Schema(description = "销售价格")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 42)
    @ExcelProperty(value ="销售价格", index = 7)
    private BigDecimal univalence;

    /** 物品条码 */
    @Schema(description = "物品条码")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 42)
    @ExcelProperty(value ="物品条码", index = 8)
    private String productBarcode;

    /** 库存数量 */
    @Schema(description = "库存数量")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 42)
    @ExcelProperty(value ="库存数量", index = 9)
    private Long inventoryQty;
    /** 库存积压数量 */
    @Schema(description = "库存积压数量")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 42)
    @ExcelProperty(value ="库存积压数量", index = 14)
    private Long maxQty;
    /** 库存预警数量 */
    @Schema(description = "库存预警数量")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 42)
    @ExcelProperty(value ="库存预警数量", index = 15)
    private Long minQty;

    /** 默认仓库 */
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 42)
    @Schema(description = "默认仓库")
    @ExcelProperty(value ="默认仓库", index = 10)
    private String defaultWarehouse;

    /** 备注 */
    @Schema(description = "备注")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 42)
    @ExcelProperty(value ="备注", index = 11)
    private String remark;

    /** 保质期 */
    @Schema(description = "保质期")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 42)
    @ExcelProperty(value ="保质期", index = 12)
    private Date expirationDate;

    /** 状态 */
    @Schema(description = "状态")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 42)
    @ExcelProperty(value ="状态", index = 13)
    private String status;

    /** 创建者 */
    @Schema(description = "创建者")
    @ExcelIgnore
    private String createUser;

    /** 创建时间 */
    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Date createTime;

    /** 更新者 */
    @Schema(description = "更新者")
    @ExcelIgnore
    private String updateUser;

    /** 更新时间 */
    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    @ExcelIgnore
    private Date updateTime;


    @TableField(exist = false)
    @ExcelIgnore
    private String productTypeName;

}
